﻿
using System;
using System.Linq;
using System.Text;

using System.ComponentModel.DataAnnotations;

namespace Oliving.Edge.Model.Dto.MQXT
{
    ///<summary>
    ///
    ///</summary> 

    [Serializable]
    public class MQXT_CaiJiQiModelPageDto
    {
        public MQXT_CaiJiQiModelPageDto()
        {
        }


        public string State
        {
            get
            {
                if (UpdateTIme > DateTime.Now.AddMinutes(-5))
                {
                    return "在线";
                }
                else
                {
                    return "离线";
                }
            }
        }
        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        public int CJQ_Id { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_Addr不能为空,内存长度超出 范围")]
        public string CJQ_Addr { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_SIM不能为空,内存长度超出 范围")]
        public string CJQ_SIM { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_Yb不能为空,内存长度超出 范围")]
        public string CJQ_Yb { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_GPS不能为空,内存长度超出 范围")]
        public string CJQ_GPS { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_Ver不能为空,内存长度超出 范围")]
        public string CJQ_Ver { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int? CJQ_Count { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ1不能为空,内存长度超出 范围")]
        public string CJQ_JCQ1 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ2不能为空,内存长度超出 范围")]
        public string CJQ_JCQ2 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ3不能为空,内存长度超出 范围")]
        public string CJQ_JCQ3 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ4不能为空,内存长度超出 范围")]
        public string CJQ_JCQ4 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ5不能为空,内存长度超出 范围")]
        public string CJQ_JCQ5 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ6不能为空,内存长度超出 范围")]
        public string CJQ_JCQ6 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ7不能为空,内存长度超出 范围")]
        public string CJQ_JCQ7 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ8不能为空,内存长度超出 范围")]
        public string CJQ_JCQ8 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ9不能为空,内存长度超出 范围")]
        public string CJQ_JCQ9 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(255, MinimumLength = 1, ErrorMessage = "CJQ_JCQ10不能为空,内存长度超出 范围")]
        public string CJQ_JCQ10 { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public DateTime? UpdateTIme { get; set; }

    }

}
